package com.hp.search_service.entity;

import com.hp.common_api.entity.Brand;
import com.hp.common_api.entity.Category;
import com.hp.common_api.entity.PageResult;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class SearchPageResult<T> extends PageResult {

    private List<Brand> brands;

    private List<Category> categories;

    private List<Map<String,Object>> specs;

    public SearchPageResult(long total, long current, List records, long size, List<Brand> brands, List<Category> categories, List<Map<String, Object>> specs) {
        super(total, current, records, size);
        this.brands = brands;
        this.categories = categories;
        this.specs = specs;
    }
}
